<?php

$fp = fopen('line_by_line.txt','w+');

foreach($_SERVER as $key=>$value)
{
  fputs($fp,"$key=>$value \n");
}
print_r($_SERVER);
